var mongoose = require('mongoose');

var pongSchema = new mongoose.Schema({
    username: {type: String, required: true, index: {unique: true}},
    password: {type: String, required: true},
    admin: {type: Boolean, required: false}
});



var User = module.exports = mongoose.model("User", pongSchema);